package com.example.cameraxdemo.utils

import android.Manifest

/**
 *@author: njb
 *@date:   2023/8/15 17:12
 *@desc:
 */
class Constants {
    companion object {
        const val REQUEST_CODE_PERMISSIONS = 101
        const val REQUEST_CODE_CAMERA = 102
        const val REQUEST_CODE_CROP = 103
        const val REQUEST_CODE_AUDIO = 104

        const val DATE_FORMAT = "yyyy-MM-dd HH.mm.ss"
        const val PHOTO_EXTENSION = ".jpg"

        val REQUIRED_PERMISSIONS = arrayOf(
            Manifest.permission.CAMERA,
            Manifest.permission.WRITE_EXTERNAL_STORAGE,
            Manifest.permission.READ_EXTERNAL_STORAGE,
            Manifest.permission.RECORD_AUDIO
        )
    }
}